extends StatusManage

enum Status{Walk,Run,Find,Fall,Death}
@onready var status_walk = $StatusWalk
@onready var status_run = $StatusRun
@onready var status_death = $StatusDeath
@onready var status_find = $StatusFind
@onready var status_fall = $StatusFall

func _ready():
	add_status_node(Status.Walk, status_walk, "Walk")
	add_status_node(Status.Run, status_run, "Run")
	add_status_node(Status.Death, status_death, "Death")
	add_status_node(Status.Find, status_find, "Find")
	add_status_node(Status.Fall, status_fall, "Fall")
	
	set_default_status(Status.Walk)

func to_walk():
	change_status(Status.Walk)

func to_run():
	change_status(Status.Run)

func to_find():
	change_status(Status.Find)

func to_fall():
	change_status(Status.Fall)

func to_death():
	change_status(Status.Death)
